package com.xuecheng.media.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 内容管理远程接口
 *
 * @author itcast
 */
@FeignClient(value = "content-api", fallbackFactory = ContentServiceClientFallbackFactory.class)
public interface ContentServiceClient {

    @GetMapping("/content/teachplan/countByMediaId")
    Integer countByMediaId(@RequestParam("mediaId") String mediaId);
}